<?php if (!defined("_ECRIRE_INC_VERSION")) return;
/**
 * Aloha Cart
 *
 * @author     Aleksey Yaroshchuk (aleksey.yaroshchuk@gmail.com)
 * @license    GNU/GPL
 * @package    plugins
 * @subpackage alohacart
 * @copyright  (c) Aleksey Yaroshchuk 2011-2012
 * @link       http://www.spip-contrib.net/AlohaCart
 */

include_spip('functions/pdk_common');
include_spip('functions/pdk_database');

function formulaires_alohacart_orders_excel_download_charger_dist(){
	$valeurs = array();
    
    $valeurs['statuts'] = array('0'=>'Все статусы'); 
    $valeurs['statuts'] = array_merge($valeurs['statuts'],select_reference_to_array('spip_alohacart_orders_statuts', 'id_statut', 'titre', null, array(), array(), 'id_statut'));
    foreach ($valeurs['statuts'] as $key=>$titre) {$valeurs['statuts'][$key] = supprimer_numero($titre); }
    //$valeurs['statuts']['0'] = 'Все статусы';
    $valeurs['date_from'] = '';
    $valeurs['date_to'] = '';
    
	return $valeurs;
}
